<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
	<head>
		<meta charset="utf-8">
		<title>Currency management : <spring:message code="currency.new" text="New Currency" var="newCurrency" /></title>
	</head> 
	<body>
		<header>
		<h1>${newCurrency}</h1>
			<nav>
				<%@include file="Nav.jsp" %>
			</nav>
		</header>

		<spring:url value="/currency/save" var="urlsave" />
		<form:form method="post" action="${urlsave}" commandName="currency">
     
        <div>
        	<form:label path="name"><spring:message code="currency.name=" text="Name" /></form:label>        	
        	<form:errors path="name" />
        </div>
        <div><form:input path="name" /></div>
        
        <div>
        	<form:label path="abbreviation"><spring:message code="currency.abbreviation" text="Abbreviation" /></form:label>        	
        	<form:errors path="abbreviation" />
        </div>
        <div><form:input path="abbreviation" /></div>
          <div>
        	<form:label path="changeeuro"><spring:message code="currency.changeeuro" text="Change Euro" /></form:label>        	
        	<form:errors path="changeeuro" />
        </div>
        <div><form:input path="changeeuro" /></div>
        
        <div>
        	<form:label path="idcountry"><spring:message code="currency.idcountry" text="Id Country" /></form:label>        	
        	<form:errors path="idcountry" />
        </div>
        <div><form:input path="idcountry" /></div>
        
        <div>
            <input type="submit" value="${newCurrency}" />
        </div>
     
</form:form>
	</body>
</html>